home *** CD-ROM | disk | FTP | other *** search
- //
- // LEGAL NOTICE
- // ============
- //
- // You may incorporate this sample code into your applications
- // without restriction. This sample code has been provided "AS
- // IS" and the responsibility for its operation is 100% yours.
- // You are not permitted to redistribute the source as "Apple
- // sample code" after having made changes. If you're going to
- // re-distribute the source, we require that you make it clear
- // in the source that the code was descended from Apple sample
- // code, but that you've made changes.
- //
- // REVISION HISTORY
- // ================
- //
- // 06/09/95 NG last touched
- // 08/23/96 PG stolen from old FinderDrag project
- //
-
- #pragma once
-
- #include <Drag.h>
- #include "FinderRegistry.h"
-
- /*
- //
- // PromiseHFS constants
- //
- #define kRealSpecItemRef 1
- #define flavorTypeBlankSpec 'Blnk'
- #define flavorTypeRealSpec 'Real'
- */
-
- //
- // These two should be in FinderRegistry.h, but they ain't
- //
- #define keyLocalPositionList 'mvpl'
- #define keyGlobalPositionList 'mvpg'
-
-
-
- Boolean HaveScriptableFinder(void);
- Boolean FinderIsRunning(void);
- OSErr MakeAppleEvent(AEEventClass aeClass, AEEventID aeID,
- AEDesc *target, AppleEvent *ae);
- OSErr SendAppleEvent(AppleEvent *ae, AppleEvent *reply, AESendMode sendMode);
- OSErr CloneMoveDescList(AEDescList *objsToMove, FSSpecPtr nuLocation,
- Point globalPt, Boolean replace, Boolean moveFlag);
- OSErr BuildHFSDescList(DragReference theDrag, AEDescList *hfsList);
- OSErr HandleDragCloneMove(DragReference theDrag);
- OSErr GetDropFSSpec(DragReference theDrag, FSSpecPtr dirSpec);
- OSErr GetIconSuiteFromFinder(FSSpecPtr, Handle *);
- OSErr BuildIconSuiteFromAEDesc(Boolean, Handle *, AEDesc *);
- OSErr MakeSpecifierForFile(FSSpecPtr hfsObj, AEDesc *fileSpecifier);
- OSErr MakePropertySpecifierForSpecifier(DescType property,
- AEDesc *ofSpecifier, AEDesc *propertySpecifier);
- OSErr AddSpecToDescList(AEDescList *descList, FSSpecPtr theSpec);
-